# Contributor: Michal Bozon <michal.bozon__at__gmail.com>
# Maintainer: Roberto Calabrese <robertocalabrese75@gmail.com>
pkgname=msr-tools
pkgver=1.3
pkgrel=5
pkgdesc="Utilities allowing to read and write CPU model-specific registers (MSR)"
arch=('i686' 'x86_64')
url="https://01.org/msr-tools"
license=('GPL')
source=("https://01.org/sites/default/files/downloads/msr-tools/msr-tools-${pkgver}.zip")
md5sums=('67d18527f64fd707c9b7a79f13d19fd5')
sha512sums=('9605eed0b6211d0ecbe48a14d66b5d61965770f249c5c1b15416d4f2e9a37a68ecfde171077c3acc74bb6b951749bcff186acbb4d6d8a3051695d2d97c0e332b')


package() {
  cd "${srcdir}/${pkgname}-master"
  mkdir -p "$pkgdir/usr/sbin/"
  install -Dm 755 -t "$pkgdir/usr/sbin/" rdmsr wrmsr cpuid
}

build() {
  cd "${srcdir}/${pkgname}-master"
  make || return 1
}

# vim:set ts=2 sw=2 et:
